package ro.isdc.vms.vehicleadvertisement.dao;

import java.util.List;

import ro.isdc.vms.vehicleadvertisement.domain.VehicleAdvertisement;

/**
 * Vehicle Advertisement Data Access Object Interface
 * 
 * @author Andrei Chirila / ISDC! Romania
 * @version 1.0.0
 * @date Jul 21, 2009
 */
public interface VehicleAdvertisementDAO {
	  /**
	   * Updates a vehicle advertisement.
	   * 
	   * @param vehicleAdvertisement the VehicleAdvertisement
	   */
	  VehicleAdvertisement update(VehicleAdvertisement vehicleAdvertisement);
	  
	  /**
	   * Find all old flagged advertisements.
	   * @return the old flagged advertisements.
	   */
	  List<VehicleAdvertisement> findOldFlaggedAdvertisements();
	  
	  /**
	   * Deletes an advertisement.
	   * @param vehicleAdvertisement the advertisement to delete.
	   */
	  void delete(VehicleAdvertisement vehicleAdvertisement);
}
